// src/store/reducers/counter.reducer.js
import counterSaga from "../sagas/counter.saga"

const initialState = {
    count: 0
}

export default function (state = initialState, action) {
    switch (action.type) {
        case "increment":
            return {
                count: state.count + 1
            }
        case "decrement":
            return {
                count: state.count - 1
            }
        default:
            return state
    }
}